/*
 * Copyright (C) 2024. GWM Automotive Inc.
 *
 * The copyright notice above does not evidence any actual
 * or intended publication of such source code.
 * The code contains GWM Confidential Proprietary Information.
 */

package com.woparker.kiosk.base

import android.content.Context
import android.os.Handler
import android.os.Looper
import androidx.lifecycle.MutableLiveData

object ContextHolder {
    @JvmStatic
    lateinit var appContext: Context
        private set

    private val handler = Handler(Looper.getMainLooper())

    val isEditorMode = MutableLiveData(false)
    fun init(context: Context) {
        appContext = context.applicationContext
    }
    fun  getMainHandler() = handler
}